<?php

namespace app\admin\validate;

use think\Validate;

class AutoReply extends Validate
{
    //字段规则
    protected $rule = [
        'question' => 'require',
    ];

    //验证器提示信息
    protected $message = [
        'question' => '请输入问题'
    ];

    //使用场景
    protected $scene = [
        'add'  =>  ['question'],
        'edit'   => ['question']
    ];
}